<%--
  Created by IntelliJ IDEA.
  User: Gov
  Date: 24/11/14
  Time: 下午 7:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <STYLE>
        .list{
            width: 295px;
            height: 460px;
            float: left;
            color: #9b9b9b;
            line-height: 20px;
            border-width: 1px;
            border-style: solid;
            margin: 10px;
        }
    </STYLE>
</head>
<body>

<p>
    <a href="Servlet1" >淘宝</a>
</p>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${not empty requestScope.list}">
  <c:forEach items="${requestScope.list}" var="item" >
    <div class="d1">
        <div class="list">
            <div>
                <img src="${item.src}" width="295px" height="243px">
            </div>
            <div>
                <span></span>
                <span style="color: #fd3f31;font-size: 18px;">${item.price}</span><span style="color: #fd3f31;">.00</span>
                <span style="right: 0;font-size: 9px;">${item.xl}+人付款</span>
            </div>
            <div>
                <span style="color: black;">${item.vendName}</span>
            </div>

            <div>
                <span>${item.sName}</span><span style="right: 0;">${item.sAddress}</span>
            </div>
        </div>

    </div>

  </c:forEach>
</c:if>

</body>
</html>
